<?php
## include required files
/*******************************/
require_once '../../includefiles.php';
require_once '../../model/state.php';
/*******************************/
## Create Objects
/*******************************/
$stateObj = new Model_State();

if($_GET['stateid']!='')
{
	$stateid = $_GET['stateid'];
	$getstatedetail = $stateObj->getStateDetailsById($stateid);
	
	## Fetch all active suburb
	$suburbArray = $stateObj->getAllSuburb($getstatedetail['iso1_code']);
	$smarty->assign('suburbArray', $suburbArray);	
}
if($_GET['suburbid'])
{
	$suburbid = $_GET['suburbid'];
	$getpostalcodedetail = $stateObj->getPostalDetailsById($suburbid);
	$smarty->assign('getpostalcodedetail', $getpostalcodedetail);	
}

	
$smarty->display(TEMPLATEDIR_ADMIN. 'manageleads/show_suburb.tpl');
unset($smarty);
?>